package com.itetchologyandenglish.home.enetity;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import springfox.documentation.annotations.ApiIgnore;

@ApiIgnore
@Data
public class Result<T> {
    private T t;
    private int stateId;
    private String message;
    public Result(int stateId,String message,T t){
        this.stateId=stateId;
        this.message=message;
        this.t=t;
    }
    public Result(int stateId,String message){
        this.stateId=stateId;
        this.message=message;
    }
    public Result() {
        this.stateId = 200;
        this.message = "success";
    }
    public Result(int stateId) {
        this.stateId = stateId;
    }

}
